package com.ybu.common;

import lombok.Getter;

public class ServiceException extends RuntimeException{
    @Getter //提供一个getter 供外部访问
    private ServiceCode serviceCode;
    public ServiceException( ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode = serviceCode;
    }
}
